home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 19 / Amiga Plus Leser CD 19.iso / Tools / MorphOS / cvs-1.11.2 / source / Makefile < prev    next >
Encoding:
Makefile  |  2002-11-18  |  2.8 KB  |  109 lines

  1. #
  2. # $Id$
  3. #
  4. # :ts=4
  5. #
  6. # AmigaOS wrapper routines for GNU CVS, using the AmiTCP V3 API
  7. # and the SAS/C V6.58 compiler.
  8. #
  9. # Written and adapted by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  10. #                        Jens Langner <Jens.Langner@htw-dresden.de>
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. # GNU General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. # along with this program; if not, write to the Free Software
  24. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25. #
  26.  
  27. TARGET    = cvs020
  28.  
  29. #
  30.  
  31. CC        = gcc
  32. STRIP     = strip
  33. OBJDUMP   = objdump
  34. RANLIB    = ranlib
  35. AR        = ar
  36. RM        = rm -f
  37. CHMOD     = chmod
  38.  
  39. CPU      = -m68020
  40. CPUFLAGS =
  41. WARN     = -Wall
  42. OPTFLAGS = -O2 -fomit-frame-pointer -fstrength-reduce -resident
  43. DEBUG    = #-g3 -O0
  44. CFLAGS   = -noixemul -I./ -I../ -I../lib -I../src -I../amiga -I../amiga/netinclude -DHAVE_CONFIG_H $(CPU) $(CPUFLAGS) $(WARN) $(OPTFLAGS) $(DEBUG) -c
  45. LDFLAGS  = -noixemul -resident $(CPU)
  46. LDLIBS   = -ldebug
  47.  
  48. # CPU and DEBUG can be defined outside, defaults to above
  49. # using e.g. "make DEBUG= CPU=-mcpu=603e" produces optimized non-debug PPC-603e version
  50. #
  51. # OPTFLAGS are disabled by DEBUG normally!
  52. #
  53. # ignored warnings are:
  54. # none - because we want to compile with -Wall all the time
  55. #
  56.  
  57. OBJS     =  src/libsrc.a lib/libcvs.a amiga/libamcvs.a amiga/ssh/libssh.a diff/libdiff.a zlib/libzlib.a
  58.  
  59. #
  60.  
  61. all: libsrc.a libcvs.a libamcvs.a libssh.a libdiff.a libzlib.a $(TARGET)
  62.  
  63. #
  64.  
  65. libsrc.a:
  66.     @make -C src CPU="$(CPU)" DEBUG="$(DEBUG)" OPTFLAGS="$(OPTFLAGS)"
  67.  
  68. libcvs.a:
  69.     @make -C lib CPU="$(CPU)" DEBUG="$(DEBUG)" OPTFLAGS="$(OPTFLAGS)"
  70.  
  71. libamcvs.a:
  72.     @make -C amiga CPU="$(CPU)" DEBUG="$(DEBUG)" OPTFLAGS="$(OPTFLAGS)"
  73.  
  74. libssh.a:
  75.     @make -C amiga/ssh CPU="$(CPU)" DEBUG="$(DEBUG)" OPTFLAGS="$(OPTFLAGS)"
  76.  
  77. libdiff.a:
  78.     @make -C diff CPU="$(CPU)" DEBUG="$(DEBUG)" OPTFLAGS="$(OPTFLAGS)"
  79.  
  80. libzlib.a:
  81.     @make -C zlib CPU="$(CPU)" DEBUG="$(DEBUG)" OPTFLAGS="$(OPTFLAGS)"
  82.  
  83. #
  84.  
  85. $(TARGET): $(OBJS)
  86.     $(CC) $(LDFLAGS) -o $@.debug $(OBJS) $(LDLIBS)
  87.     $(STRIP) -o $@ $@.debug
  88.     $(CHMOD) a+x $@
  89.  
  90. dump:
  91.     -$(OBJDUMP) --section-headers --all-headers --reloc --disassemble-all $(TARGET).debug >$(TARGET).dump
  92.  
  93. clean:
  94.     -$(RM) $(TARGET) $(OBJS)
  95.  
  96. cleanall: clean
  97.     make -C src clean
  98.     make -C lib clean
  99.     make -C amiga clean
  100.     make -C amiga/ssh clean
  101.     make -C diff clean
  102.     make -C zlib clean
  103.  
  104. #######################################
  105.  
  106.  
  107. #######################################
  108.  
  109.